package com.my.study.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author Carlos
 * @version 1.0
 * @Description 消息事件
 * @date 2021/7/12 22:44
 **/
@SuppressWarnings("serial")
public class MsgEvent extends ApplicationEvent {

    private Long userId;

    public MsgEvent(Object source) {
        super(source);
    }

    public MsgEvent(Object source, Long userId) {
        super(source);
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
